package models

import "strconv"

// Card 命运卡
type Card struct {
	Id       string "gorm:\"primaryKey;autoIncrement\" json:\"id\""
	CardCn   string
	ValueEn  string
	ValueTw  string
	Number   string
	Currency string
}

// CardList 命运卡数据
type CardList struct {
	CardCn   string
	CardEn   string
	CardTw   string
	Number   string
	Currency string
}

// GetUrlSuffix getSuffix 获取URL后缀
func (m Card) GetUrlSuffix() string {
	return "Divination_Cards"
}

// GetUrlSelector 获取URL选择器
func (m Card) GetUrlSelector(number int) []string {

	numStr := strconv.Itoa(number)
	return []string{
		"#命运卡物品 > div > div > div:nth-child(" + numStr + ") > div > div.flex-grow-1.ms-2 > a",
		"#命运卡物品 > div > div > div:nth-child(" + numStr + ") > div > div.flex-grow-1.ms-2 > div > div.property > span",
		"#命运卡物品 > div > div > div:nth-child(" + numStr + ") > div > div.flex-grow-1.ms-2 > div > div.explicitMod > span",
	}
}
